<?php
namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller {
    public function index(){
        $this->display('Login');
    }
    public function verification(){
        if(IS_POST){
           $User = D('User');
           if(!$User->create()){
               $this->error($User->getError());
           }else{
               $this->ajaxReturn($User->checkUserPwd());
           }
        }else{
            $this->error("请使用正确的提交方式!!!");
        }
    }
}